<template>
	<view class="mainpadding" v-if="pageShow">
		<view class="ffffff mainpadding radius dingwei">
			<view class="line"></view>
			<view class="sanshier zhonghei fonweight">商家介绍</view>
			<view class="ershiba xiaohui margin_top">
				<u-parse :content="dataAll.introduce"></u-parse>
			</view>
		</view>
		<view class="ffffff mainpadding radius dingwei margin_top">
			<view class="line"></view>
			<view class="sanshier zhonghei fonweight">商家相册</view>
			<view class="flexleft flex_wrap">
				<view class="ershiw flexcenter margin_top" v-for="(item,index) in dataAll.images_text" :key="index" @click="lbtpriview(index,dataAll.images_text)">
					<image style="width: 143.42rpx;height: 144.38rpx;" :src="item" mode="">
					</image>
				</view>
			</view>
		</view>
		<view class="ffffff mainpadding radius dingwei margin_top">
			<view class="line"></view>
			<view class="sanshier zhonghei fonweight">设施服务</view>
			<view class="ershil xiaohui margin_top">{{dataAll.bq}}</view>
		</view>
	</view>
</template>

<script>
	const httpRequest = require("@/common/httpRequest.js")

	export default {
		data() {
			return {
				dataAll: {},
				pageShow: false,
				type:1,//1车辆养护，2评论，3餐饮
			}
		},
		onLoad(options) {
			this.listid = options.id
			this.type = options.type
			this.getDetail()
		},
		methods: {
			getDetail() {
				let url = "/api/hotelcl/hotelDetail"
				if(this.type==1){
					url = "/api/carshopcl/carshopDetail"
				}
				if(this.type==3){
					url = "/api/Foodshopcl/foodshopDetail"
				}
				httpRequest.request(url, 'GET', {
					id: this.listid
				}, false, false, true).then(res => {
					this.dataAll = res.data
					this.pageShow = true
				})
			},
		}
	}
</script>

<style lang="scss" scoped>
	.line {
		position: absolute;
		top: 36rpx;
		left: 0;
		width: 6rpx;
		height: 28rpx;
		background: #FF8505;
		border-radius: 0rpx 24rpx 24rpx 0rpx;
	}
</style>